define(function(require,exports,module){
	var aw = require("ajaxwrapper");
	
	module.exports = {
		queryGroupReserve: function(cParams,sCb){
            aw.ajax({
                url: "api/groupreserve/query",
                data: cParams,
                success: sCb
            });
        },
        queryBuildingByDes: function(cParams,sCb){
            aw.ajax({
                url: "api/groupreserve/querybuildingbydes",
                data: cParams,
                success: sCb
            });
        },
        queryRoomTypeByBuilding: function(cParams,sCb){
        	aw.ajax({
                url: "api/groupreserve/queryroomtype",
                data: cParams,
                success: sCb
            });
        },
        queryRoom: function(cParams,sCb){
        	aw.ajax({
        		url: "api/roomregister/queryroomstatus",
        		data: cParams,
        		success: sCb
        	});
        },
        save: function(cParams,sCb){
            aw.ajax({
                url: "api/groupreserve/saveall",
                data: cParams,
                success: sCb
            });
        }
	};
});